package com.bishe.demo.modules.ticket.dao;

import com.bishe.demo.modules.common.entity.TimeTable;
import com.bishe.demo.modules.ticket.entity.TicketSite;
import com.bishe.demo.modules.ticket.entity.TrainModelSeating;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Description ModelSeatingDao
 * @Author YHQ
 * @Date 2021/3/30 20:02
 */
@Repository
@Mapper
public interface ModelSeatingDao {

    @Select("select s_m_id from train_model_seating where model_id = #{modelId}")
    Integer getSMIdByModelId(Integer modelId);

    @Select("select s_m_id from train_model_seating where seating_id =#{seatingId} ")
    Integer getSMIdBySeatingId(Integer seatingId);
}
